/*
 * Copyright Thoughtworks, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.admin_holder {
  background: none repeat scroll 0 0 #eee;
  border-radius: 5px 5px 5px 5px;
  padding: 5px;
  margin-top: 10px;
  border: 1px solid #ccc;
}

#content_area pre {
  background: none repeat scroll 0 0 white;
  padding: 10px;
  white-space: pre-wrap;
  border: 1px solid #ccc;
}

#content_area .conflicted_content textarea {
  float: right;
  margin-top: 21px;
  width: 40%;
}

.heading {
  h2 {
    display: inline;
  }

  .label {
    color: #999;
  }

  span {
    float: right;
    font-size: 1.1em;
    margin-top: 2px;
    white-space: nowrap;
  }
}

#admin-holder-for-admin-config-source-xml pre,
#content_area textarea {
  height: 600px;
  padding: 10px;
  margin-bottom: 15px;
  overflow: auto;
}

#admin-holder-for-admin-config-source-xml pre {
  border: 1px solid #ccc;
  margin-top: 5px;
}

#content_area textarea {
  height: 620px;
  background-color: #fffacd;
}

#admin-holder-for-admin-config-source-xml .conflicted_content h3 {
  margin-top: 10px;
}

#admin-holder-for-admin-config-source-xml .buttons-group > * {
  min-width: 100px;
}

/* start : added this class because ellipses */
#admin-holder-for-admin-config-source-xml .buttons-group {
  #cancel_edit,
  #save_config {
    position: absolute;
    margin-top: -20px;
  }

  #cancel_edit {
    margin-right: 24px;
    right: 0;
  }

  #save_config {
    right: 150px;
  }

  #edit_config {
    margin-top: -18px;
    position: absolute;
    right: 21px;
  }
}

/* end : added this class because ellipses */

.config_change_timestamp {
  color: #999;
  font-size: 1.1em;
  margin-right: 250px;
  overflow: hidden;
  padding-top: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 16px;
}

#config_editor_form #content_area {
  clear: both;
}

.conflicted_content + .current_content {
  #content_area,
  .buttons-group {
    clear: none !important;
    width: 48%;
    padding: 10px 1% 0;
    background-color: #eee;
    float: right;
  }
}

.conflicted_content + .current_content .buttons-group {
  #cancel_edit,
  #save_config {
    margin-top: -17px !important;
  }

  #cancel_edit {
    margin-right: 33px !important;
  }

  #save_config {
    right: 158px !important;
  }
}

.conflicted_content {
  width: 49%;
  float: left;

  pre {
    white-space: pre-wrap;
    margin-top: 21px !important;
  }
}

select#select_template {
  float: left;
}
